﻿using System;

namespace Gonte
{
    public static class Range<T> where T : IComparable
    {
        public static bool IsInRange(T val, T min, T max)
        {
            return 
                (
                    val.CompareTo(min) >= 0
                    && val.CompareTo(max) <= 0
                );
        }
    }
}
